package com.yj.web.WeChat.Message;

import com.yj.web.WeChat.Bean.NewsBuilder;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by yanlinyang on 2017/9/10.
 */
@Data
public class WxCustomMessage implements Serializable {
    private String toUser;
    private String msgType;
    private String content;
    private String mediaId;
    private String thumbMediaId;
    private String title;
    private String description;
    private String musicUrl;
    private String hqMusicUrl;
    private List<WxArticle> articles = new ArrayList<WxArticle>();

    @Data
    public static class WxArticle {

        private String title;
        private String description;
        private String url;
        private String picUrl;
    }

    public static NewsBuilder NEWS() {
        return new NewsBuilder();
    }

}
